<?php
/**
 * Created by PhpStorm.
 * User: zouhua
 * Date: 2017/5/10
 * Time: 16:55
 */

namespace admin\components;


use app\models\Activity;
use yii\grid\ActionColumn;

class ActivityActionColumn extends ActionColumn {


    protected function renderDataCellContent($m, $key, $index) {
        /* @var $model Activity */
        $model = $m;
        if($model->getIsVerify()){
            $this->buttons['verify'] = 1 ;
        }
        return parent::renderDataCellContent($model, $key, $index);
    }
}